package cn.wolfcode.business.mapper;

import cn.wolfcode.business.domain.BusAppointment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface AppointmentMapper {

    List<BusAppointment> selectAppointmentList(BusAppointment appointment);

    BusAppointment selectAppointmentById(Long id);

    int save(BusAppointment appointment);

    int update(BusAppointment appointment);

    int deleteAppointmentByIds(@Param("ids") Long[] ids);


    int arrival(@Param("date") Date date, @Param("status") Integer statusArrived, @Param("id") Long id);

    int cancel(@Param("status") Integer statusUserCancelled, @Param("id") Long id);
}
